console.log()
and why it is used?console.log()
accepts a parameter which can be an object, an array or any message. console.log(name);
// here name is object, an array or variable.$('#form').submit(function() {
console.log(‘Your form is submitted successfully!’);
// do something
});